import { createStore } from 'vuex';
import { staticRoutes } from '@/router/staticRoutes';
export default createStore({
    state: {
        name: "lu",
        isCollapse: false, // 控制菜单展开与折叠
        staticRoutes:staticRoutes
    },
    mutations: {
        updateName(state,param){
            state.name = param
        },
        updateCollapse(state){
            state.isCollapse = !(state.isCollapse);
        }
    },
    actions: {
    },
    getters: {
        getName (state) {
            return state.name;
        }
    },

});